﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IFClientDLL.MyCalc.CalcMarket;
using IFClientDLL.MyCalc.CalcArt.MyCalc_DaPan;
using IFClientDLL.MyCalc.CalcArt.MyCalc_PanKou;
using IFClientDLL.MyCalc.CalcArt.MyCalc_JiShu;

namespace IFClientDLL.MyCalc.CalcArt
{
    public enum MyEnumCalcVolumnType
    {
        保守,
        平衡,
        激进
    }
    public class MyCalc_UserInput
    {
        public static List<ICalc_DaPan> ListALL_DaPan = new List<ICalc_DaPan>();
        public static List<ICalc_JiShu> ListALL_JiShu = new List<ICalc_JiShu>();
        public static List<ICalc_Art> ListALL_CalcArt = new List<ICalc_Art>();
        static MyCalc_UserInput()
        {
            
        }
        public MyCalc_UserInput()
        {
            IsAutoTrade = true;
            VolumnType = MyEnumCalcVolumnType.平衡;
            Do_DaPan = new MyCalc_DaPan_MA60();
            Do_JiShu = new MyCalc_JiShu_RedGreenBar();
            Do_ListCalcArt = new List<ICalc_Art>();
        }
        public MyEnumCalcVolumnType VolumnType { get; set; }
        public ICalc_DaPan Do_DaPan { get; set; }
        public ICalc_JiShu Do_JiShu { get; set; }
        public List<ICalc_Art> Do_ListCalcArt { get; set; }
        public bool IsAutoTrade { get; set; }
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendLine("AutoTrade:" + IsAutoTrade);
            sb.AppendLine("DaPan:" + Do_DaPan.Name);
            sb.AppendLine("JiShu:" + Do_JiShu.Name);
            foreach (var x in Do_ListCalcArt)
            {
                sb.AppendLine("Art:" + x.Name);
            }
            return base.ToString();
        }
    }
}
